home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn Microsoft Visual Basic 6.0 Now
/
Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO
/
media
/
chap11
/
b11v005.cc2
< prev
Wrap
Text File
|
1998-06-07
|
3KB
|
63 lines
0, Imagine writing a text editor program
2, with Visual Basic that provides standard
4, word processing features such as spell
6, checking and grammar analysis. What
8, dictionary would you use to check the spelling
10, of each word, and how would you write
12, the program code that analyzed the
13, grammatical structure of a sentence or
15, paragraph? While writing a spelling checker may
17, seem like a daunting task, you're not
19, required to solve such a detailed problem
21, on your own. Visual Basic includes a
23, technology called Automation, which allows
26, you to use the advanced features of
27, another application in your Visual Basic
29, program. The only requirement is that the
31, application you use be designed to
33, support Automation and that you have a copy of
36, the program on your system. If you're
38, currently using Microsoft Office, you're
40, ready to get started now. Each component
42, of the Microsoft Office 97 software
44, suite fully supports Automation from Visual
47, Basic. The communication between Visual
49, Basic and a Microsoft Office
50, application is easily demonstrated with an example
53, from the kitchen. Imagine that you want
55, to cook a pasta dinner for friends but
57, that you're running short on time. If
59, you're feeling motivated, you might run
61, out and buy a pasta maker and assemble the
63, necessary ingredients to create the
64, pasta from scratch. After all, your friends
67, are worth it aren't they? Now let's
69, see, how do I get this eggplant into the
71, pasta? If this meal were a Visual Basic
75, program, we could use Automation and a
77, Microsoft Office application to save us
80, some serious work. Rather than make pasta
82, from scratch, I could use Automation to
84, send my personal pasta shopper out to get
86, the best home-made pasta in town, and
88, if I own Office, it won't even cost me
90, anything! "Hello,Mike." "Hello." "Here's
93, your eggplant tortellini." "Thank you
95, very much." "You're welcome." "How much do
96, I owe you?" "My compliments.""Thank
98, you." In conclusion, I can prepare a meal
101, much more quickly, and probably with
103, better results, if I use Automation to do the
106, work. In fact, I can use any number of
109, Automation objects to make my life
110, easier.To continue the analogy, I can use
113, Office application objects to supply the
115, pasta, the bread, and the salad while I
119, concentrate on the setting the table and
121, opening the wine. In the next part of
123, this chapter, you'll learn how to use the
125, Visual Basic Object Browser as your
126, personal take-out menu for the Office
128, application objects in your system. Simply
131, place your order and put Automation to work!
134, END